<template>
  <el-table
      :data="tableData"
      style="width: 100%">
    <template v-for="(item,index) in list">
      <el-table-column
          :prop="item.prop"
          :label="item.label"
          :key="index"
      >
      </el-table-column>
    </template>
  </el-table>
</template>

<script>
export default {
  name: "watch",
  data(){
    return{
      //表体数据
      tableData: [
        {
          mingcheng: '10086',
          kaishi: '0218',
          daoqi: '0219',
          ying: '1000人',
          shiji:'15624人',
        },
      ],
      //表头数据
      list:[
        {prop:'mingcheng',label:'发起者名称'},
        {prop:'kaishi',label:'打卡开始时间'},
        {prop:'daoqi',label:'打卡到期时间'},
        {prop:'ying',label:'应打卡人数'},
        {prop:'shiji',label:'实际打卡人数'},

      ]
    }
  }

}
</script>

<style scoped>

</style>
